﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CTATM.aspx.cs" Inherits="CTATM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style13
        {
            width: 219px;
        }
        .style14
        {
            width: 219px;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p align="center">
        <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="X-Large" 
            ForeColor="Red" 
            Text="THÔNG TIN CHI TIẾT VỀ ĐIỂM ĐẶT ATM CỦA NGÂN HÀNG VIETCOMBANK"></asp:Label>
        <asp:DataList ID="DataList1" runat="server" BackColor="#DEBA84" 
            BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
            CellSpacing="2" DataKeyField="MaATM" DataSourceID="SqlDataSource1" 
            GridLines="Both" style="margin-right: 189px">
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
            <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <ItemTemplate>
                <table border="2PX" class="style11">
                    <tr>
                        <td class="style13">
                            <strong>Mã ATM</strong></td>
                        <td>
                            <asp:Label ID="MaATMLabel" runat="server" Text='<%# Eval("MaATM") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            <strong>Mã Khu Vực</strong></td>
                        <td>
                            <asp:Label ID="MaKhuVucLabel" runat="server" Text='<%# Eval("MaKhuVuc") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            <strong>Tên máy ATM</strong></td>
                        <td>
                            <asp:Label ID="TenmayATMLabel" runat="server" Text='<%# Eval("TenmayATM") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Địa chỉ</td>
                        <td>
                            <asp:Label ID="DiachiLabel" runat="server" Text='<%# Eval("Diachi") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Kinh độ
                        </td>
                        <td>
                            <asp:Label ID="LatitudeLabel" runat="server" Text='<%# Eval("Latitude") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Vĩ độ</td>
                        <td>
                            <asp:Label ID="LongtitudeLabel" runat="server" 
                                Text='<%# Eval("Longtitude") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Thông tin ATM</td>
                        <td>
                            <asp:Label ID="ThongTinLabel" runat="server" Text='<%# Eval("ThongTin") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td class="style14">
                            Kích hoạt</td>
                        <td>
                            <asp:Label ID="IsActiveLabel" runat="server" Text='<%# Eval("IsActive") %>' />
                        </td>
                    </tr>
                </table>
                <br />
                Cám ơn khách hàng đã sử dụng dịch vụ<br />
            </ItemTemplate>
            <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:VietComBankConnectionString %>" 
            SelectCommand="SELECT * FROM [ThongTinATM] WHERE ([MaATM] = @MaATM)">
            <SelectParameters>
                <asp:QueryStringParameter Name="MaATM" QueryStringField="MaATM" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
</asp:Content>

